#include <stdio.h>
// g++ -o test_volatile test_volatile.cc -std=c++11
void test1() {
  const int local = 10;
  int *ptr = (int *)&local;
  printf("Initial value of local : %d \n", local);
  *ptr = 100;
  printf("Modified value of local: %d \n", local);
  return;
}
void test2() {
  const volatile int local = 10;
  int *ptr = (int *)&local;
  printf("Initial value of local : %d \n", local);
  *ptr = 100;
  printf("Modified value of local: %d \n", local);
  return;
}
int main(void) {
  test1();
  test2();
}